package com.whmskj.xjlhsc.stationmachine.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.whmskj.xjlhsc.controller.vo.Result;
import com.whmskj.xjlhsc.stationmachine.pojo.dto.YieldDataDTO;
import com.whmskj.xjlhsc.stationmachine.service.IYieldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author jiaruchun
 * @date 2025-09-17 19:09
 * @Description: 产量
 */
@SaIgnore
@RestController
@RequestMapping("/cockpit/yield")
public class YieldController {
    @Autowired
    private IYieldService yieldService;

    @GetMapping
    public Result reYieldData(@RequestParam(required = false) String process){
        return Result.success(yieldService.reYieldData(process));
    }
}
